package com.spica.platform.user.service;


import com.spica.platform.base.model.SysRole;
import com.spica.platform.db.service.IService;
import com.spica.platform.user.model.SysUserRole;

import java.util.List;

/**
 * @author someday
 */
public interface ISysUserRoleService extends IService<SysUserRole> {

	/**
	 * 根据用户id获取角色
	 */
	List<SysRole> findRolesByUserId(Long userId);

	int deleteUserRole(Long userId, Long roleId);

	/**
	 * 根据用户ids 获取
	 */
	List<SysRole> findRolesByUserIds(List<Long> userIds);

}
